<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ProjectDocumentUploadInquiry.aspx.cs" Inherits="ProjectDocumentUploadInquiry" title="Project Monitoring System" culture="Auto:en-US" uiculture="auto" meta:resourcekey="PageResource1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server" Visible="false">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div style="margin-left:10px;margin-right:10px;">
        <fieldset>
            <table style="width: 1000px">
                <tr>
                    <td>
                        <asp:Label ID="lblStartingBatchID" runat="server" Text="Starting Batch ID" meta:resourcekey="lblStartingBatchID"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtStartingBatchID" runat="server" Width="212px" MaxLength="30" meta:resourcekey="txtStartingBatchID"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblEndingBatchID" runat="server" Text="Ending Batch ID"  meta:resourcekey="lblEndingBatchID" ></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEndingBatchID" runat="server" MaxLength="30" meta:resourcekey="txtEndingBatchID" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblStartingTransDate" runat="server" Text="Starting Transaction Date" meta:resourcekey="lblStartingTransDate"></asp:Label>
                    </td>
                    <td>
                        <cc1:CalendarExtender ID="calStartingTransDate" runat="server" TargetControlID="txtStartingTransDate"
                        Enabled="True" Format="dd/MM/yyyy">
                        </cc1:CalendarExtender>
                        <asp:TextBox ID="txtStartingTransDate" runat="server" Width="200px" meta:resourcekey="txtStartingTransDate"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblEndingTransDate" runat="server" Text="Ending Transaction Date" meta:resourcekey="lblEndingTransDate"></asp:Label>
                    </td>
                    <td>
                        <cc1:CalendarExtender ID="calEndingTransDate" runat="server" TargetControlID="txtEndingTransDate" Enabled="True" Format="dd/MM/yyyy">
                        </cc1:CalendarExtender>
                        <asp:TextBox ID="txtEndingTransDate" runat="server" Width="200px" meta:resourcekey="txtEndingTransDate"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblRemark" runat="server"  Text="Remark" meta:resourcekey="lblRemark"></asp:Label>
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtRemark" runat="server" MaxLength="100" meta:resourcekey="txtRemark" Width="700px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" align="center">
                        <asp:Button ID="btnSearch" runat="server" CssClass="submit" meta:resourcekey="btnSearchResource1" OnClick="btnSearch_Click" Text="Search" />
                        <asp:Button ID="btnExport" runat="server" OnClick="btnExport_Click" Text="Export" CssClass="submit" Width="105px" meta:resourcekey="btnExportResource1" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <br />
        <asp:Panel ID="Panel1" runat="server" Height="380px" Width="100%" ScrollBars="Auto" meta:resourcekey="Panel1Resource1">
            <asp:ObjectDataSource ID="ODSProjectDocumentUpload" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetSearchResult" TypeName="IPMS.BLL.ProjectDocumentUploadLog">
                <SelectParameters>
                    <asp:ControlParameter ControlID="txtStartingBatchID" Name="StartingBatchID" PropertyName="Text"
                        Type="String" DefaultValue="XXXXXXX" />
                    <asp:ControlParameter ControlID="txtEndingBatchID" Name="EndingBatchID" PropertyName="Text"
                        Type="String" DefaultValue="" />
                    <asp:Parameter Name="StartingTransDate" Type="DateTime" />
                    <asp:Parameter Name="EndingTransDate" Type="DateTime" />
                    <asp:ControlParameter ControlID="txtRemark" Name="Remark" PropertyName="Text" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            &nbsp;&nbsp;
            <asp:GridView CssClass="Grid" ID="gvResults" runat="server" BackColor="#DEBA84" BorderColor="#660000"
                BorderStyle="Solid" BorderWidth="1px" CellPadding="0" CellSpacing="0" Width="100%"
                AllowSorting="True" AutoGenerateColumns="False" 
                DataSourceID="ODSProjectDocumentUpload" meta:resourcekey="gvResultsResource1" DataKeyNames="BatchID,TransDate,Remark,Target_TransferFileFullPath,Source_TransferFileFullPath">
                <Columns>
                    <asp:BoundField DataField="BatchID" HeaderText="BatchID" ReadOnly="True" meta:resourcekey="BoundFieldResource1" />
                    <asp:BoundField DataField="TransDate" HeaderText="TransDate" ReadOnly="True" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource2"  />
                    <asp:BoundField DataField="Remark" HeaderText="Remark" ReadOnly="True" meta:resourcekey="BoundFieldResource3" />
                    <asp:BoundField DataField="Target_TransferFileFullPath" HeaderText="Target_TransferFileFullPath"
                        ReadOnly="True" meta:resourcekey="BoundFieldResource4" />
                    <asp:BoundField DataField="Source_TransferFileFullPath" HeaderText="Source_TransferFileFullPath"
                        ReadOnly="True" Visible="False" meta:resourcekey="BoundFieldResource5" />
                </Columns>
                <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                <RowStyle CssClass="GridRowStyle"/>
                <AlternatingRowStyle CssClass="GridAltRowStyle"/>
                <SelectedRowStyle CssClass="GridSelectedRowStyle"/>
                <PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
                <FooterStyle CssClass="GridFooterStyle"/>
            </asp:GridView>
        </asp:Panel>
    </div>
</asp:Content>

